<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<logic:present name="loaded">
<html:form method="post" action="/EditBookComment">
<h3><bean:write name="loaded" property="title"/></h3>
<logic:iterate id="record" name="loaded" property="comments">
<bean:write name="record" property="bookCommentId"/>
<!--Commented by:<bean:write name="record" property="user"/>-->
<br/>
<html:textarea  name="record" property="comment" >
<bean:write name="record" property="comment"/>
</html:textarea>
<br/></logic:iterate>
<html:submit value="Edit"/>
</html:form>
</logic:present>

<logic:present name="success">
<h3>Book comments have been updated
</logic:present>

</body>
</html>